package com.ruoyi.NewProduct.service.impl;

import com.ruoyi.NewProduct.domain.NewProduct;
import com.ruoyi.NewProduct.mapper.NewProductMapper;
import com.ruoyi.NewProduct.service.NewProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class NewProductServiceimpl implements NewProductService {
  @Autowired
  NewProductMapper newmapper;

  @Override
  public List<NewProduct> getShopList() {
    return newmapper.getShopList();
  }

  @Override
  public List<NewProduct> selectShopByIf(NewProduct re) {
    return newmapper.selectShopByIf(re);
  }

  @Override
  public List<NewProduct> selectShopByWhen(NewProduct re) {
    return newmapper.selectShopByWhen(re);
  }

  @Override
  public int insertNewShop(NewProduct resShop) {
    return newmapper.insertNewresShop(resShop);
  }

  @Override
  public int updateNewshop(NewProduct resShop) {
    return newmapper.updateNewresshop(resShop);
  }

  @Override
  public int deleteNewShop(int id) {
    return newmapper.deleteNewresShop(id);
  }

  @Override
  public NewProduct getShopByid(Long id) {
    return newmapper.getShopByid(id);
  }

  @Override
  public NewProduct GetShopDetailByIdName(String name) {
    return newmapper.getShopDetailByIdName(name);
  }




}







